﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucLogin.ascx.cs" Inherits="Yumcha_UcControl_ucLogin" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = window.parent.location;
    }
</script>

<style type="text/css">
    .login, .register
    {
        border: 1px solid #CCCCCC;
        height: 400px;
    }
    .log
    {
        background: none repeat scroll 0 0 #C6A145;
        color: oldlace;
        font-weight: bold;
        padding: 5px 5px 5px 10px;
        text-transform: uppercase;
    }
    .log1
    {
        padding-left: 10px;
        padding-top:10px;
    }
    .log2
    {
    	padding-left:10px;
    }
    td
    {
        line-height: 40px;
    }
</style>
<div style="width: 100%">
    <div class="login" style="float: left; width: 47%">
        <div class="log">
            Login</div>
        <div class="log1">
            If you have an account, please enter email.</div>
        <table class="log2" width="100%" border="0">
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="lbmsLogin" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="align">
                    Email Adrress
                </td>
                <td>
                    <asp:TextBox ID="txtemailLogin" runat="server" Width="195px" Height="20px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                        ValidationGroup="Login" ControlToValidate="txtemailLogin"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="btnLogin" runat="server" Style="color: white; margin-top: 15px; border-radius: 8px 0 8px 0;
                                padding: 3px; background: none repeat scroll 0px 0px rgb(198, 161, 69);" Text="Login"
                                OnClick="btnLogin_Click" ValidationGroup="Login" />
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnLogin" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div class="register" style="float: right; width: 47%">
        <div class="log">
            Register</div>
        <div class="log1">
            You can register a new account here.</div>
        <div>
            <table class="log2" width="100%" border="0">
                <tr>
                    <td class="align">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="align" style="width: 100px">
                        Fist Name :
                    </td>
                    <td>
                        <asp:TextBox ID="txt_fistname" runat="server" Width="195px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Last Name :
                    </td>
                    <td>
                        <asp:TextBox ID="txt_lastname" runat="server" Width="195px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Address :
                    </td>
                    <td>
                        <asp:TextBox ID="txt_address" runat="server" Width="195px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Mobile phone :
                    </td>
                    <td>
                        <asp:TextBox ID="txtmobilephone" runat="server" Width="195px" Height="20px" ValidationGroup="Register"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Email :
                    </td>
                    <td>
                        <asp:TextBox ID="txt_email" runat="server" Width="195px" Height="20px" ValidationGroup="Register"></asp:TextBox>
                       
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                     <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_email"
                            WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                        </asp:TextBoxWatermarkExtender>
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_email"
                            runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="Register"></asp:RequiredFieldValidator>&nbsp;
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                            Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="txt_email" SetFocusOnError="True" ValidationGroup="Register"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnRegister" runat="server" Style="color: white; margin-top:-22px; border-radius: 8px 0 8px 0;
                            padding: 6px; background: none repeat scroll 0px 0px rgb(198, 161, 69);" 
                            Text="Register" onclick="btnRegister_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
